package day29;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

import java.awt.BorderLayout;
import java.awt.Label;
import javax.swing.JTextField;
import javax.swing.JLabel;
import java.awt.Color;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class InputFormPanel extends JPanel {
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private JTextField textField_6;

	private JButton inputBtn = new JButton("입력");
	private InputFormPanel input = new InputFormPanel();
	public MaterInputPanel(){
		
	}
	
	/**
	 * Create the panel.
	 */
	public InputFormPanel() {
		setLayout(new BorderLayout(0, 0));
		
		JPanel buttonPanel = new JPanel();
		add(buttonPanel, BorderLayout.SOUTH);
		
		JPanel panel = new JPanel();
		add(panel, BorderLayout.CENTER);
		panel.setLayout(null);
		
		Label label = new Label("제품코드");
		label.setBounds(22, 10, 69, 23);
		panel.add(label);
		
		textField = new JTextField();
		textField.setColumns(10);
		textField.setBounds(100, 12, 97, 21);
		panel.add(textField);
		
		JLabel label_1 = new JLabel("품목명");
		label_1.setBounds(22, 41, 57, 15);
		panel.add(label_1);
		
		JLabel label_2 = new JLabel("단가");
		label_2.setBounds(22, 66, 57, 15);
		panel.add(label_2);
		
		textField_1 = new JTextField();
		textField_1.setColumns(10);
		textField_1.setBounds(91, 39, 116, 21);
		panel.add(textField_1);
		
		textField_2 = new JTextField();
		textField_2.setColumns(10);
		textField_2.setBounds(101, 63, 116, 21);
		panel.add(textField_2);
		
		JLabel label_3 = new JLabel("제품사양");
		label_3.setBounds(22, 91, 57, 15);
		panel.add(label_3);
		
		textField_3 = new JTextField();
		textField_3.setColumns(10);
		textField_3.setBounds(81, 91, 116, 21);
		panel.add(textField_3);
		
		JLabel label_4 = new JLabel("거래처");
		label_4.setBounds(22, 127, 57, 15);
		panel.add(label_4);
		
		textField_4 = new JTextField();
		textField_4.setColumns(10);
		textField_4.setBounds(81, 124, 116, 21);
		panel.add(textField_4);
		
		JLabel label_5 = new JLabel("입고수량");
		label_5.setBounds(22, 163, 57, 15);
		panel.add(label_5);
		
		textField_5 = new JTextField();
		textField_5.setColumns(10);
		textField_5.setBounds(81, 160, 116, 21);
		panel.add(textField_5);
		
		JLabel label_6 = new JLabel("출고수량");
		label_6.setBounds(22, 191, 57, 15);
		panel.add(label_6);
		
		textField_6 = new JTextField();
		textField_6.setColumns(10);
		textField_6.setBounds(81, 188, 116, 21);
		panel.add(textField_6);

	}
     public static void main(String[] args){
    	 JFrame f = new JFrame();
    	 InputFormPane1 form = new InputFormPanel();
    	 f.getContentPane().add(form);
    	 f.setBounds(200,200,400,300);
    	 f.setVisibls(true);
    	 
    	 JButton inputBtn = new JButton("입력");
    	 JButton inputBtn2 = new JButton("입력2");
    	 JButton inputBtn3 = new JButton("입력3");
    	 
    	 form.getButtonPanel().add(inputBtn);
    	 form.getButtonPanel().add(inputBtn2);
    	 form.getButtonPanel().add(inputBtn3);
     }
}
